Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pytests for featurize_directory and featurize_files #191

Merged
merged 8 commits into from
Jan 11, 2024

Conversation

JesseMckinzie
Copy link
Member

  • Add pytests for featurize_directory and featurize_files
  • Add tissuenet data for tests

Copy link

sweep-ai bot commented Jan 5, 2024

Apply Sweep Rules to your PR?

  • Apply: All new business logic should have corresponding unit tests.
  • Apply: Refactor large functions to be more modular.
  • Apply: Add docstrings to all functions and file headers.


tissuenet_int = np.array([int_p0_y1_r1_c0, int_p0_y1_r1_c1])
tissuenet_seg = np.array([seg_p0_y1_r1_c0, seg_p0_y1_r1_c1])
print(tissuenet_int)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the print please.

files_not_equal.append(col)
break

print(files_not_equal)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove print. If necessary, we can modify the assert to print a custom message when it fails, something like this:
assert len(files_not_equal) == 0, f"Files that are not equal:\n {files_not_equal}"

@sameeul sameeul merged commit e012549 into PolusAI:main Jan 11, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants